package com.sz.common.base.exception;

/**
 * Function: CommonErrorCodes <br>
 * Author: Charles <br>
 * Date: 2017-01-17 10:11:00
 */
public interface CommonErrorCodes {
    //系统错误
    ErrorCode ERROR_401_MSG = new ErrorCode(401, "error.401.msg");
    ErrorCode ERROR_403_MSG = new ErrorCode(403, "error.403.msg");
    ErrorCode ERROR_500_MSG = new ErrorCode(500, "error.500.msg");

    //公共错误代码 code: 100000~109999
    String ERROR_COMMON_KEY = "error.common";
    ErrorCode ERROR_COMMON = new ErrorCode(100000, ERROR_COMMON_KEY);
    ErrorCode ERROR_ARGUMENT_EMPTY = new ErrorCode(100001, "error.argument.empty");
    ErrorCode ERROR_ARGUMENT_EXIST = new ErrorCode(100002, "error.argument.exist");
    ErrorCode ERROR_ARGUMENT_ILLEGAL = new ErrorCode(100003, "error.argument.illegal");
    ErrorCode ERROR_ARGUMENT_GREATER_ZERO = new ErrorCode(100007, "error.argument.greater.zero");
    ErrorCode ERROR_LEAVE_MESSAGE_IS_NULL = new ErrorCode(100008, "error.leave.message.isnull");

    ErrorCode ERROR_OBJECT_EMPTY = new ErrorCode(100004, "error.object.empty");
    ErrorCode ERROR_OBJECT_EXIST = new ErrorCode(100005, "error.object.exist");
    ErrorCode ERROR_ANNOTATION_EMPTY = new ErrorCode(100006, "error.annotation.empty");
    ErrorCode ERROR_ARGUMENT_NOT_EXIST = new ErrorCode(100009, "error.argument.not.exist");

    //100011编码code|number已存在
    ErrorCode ERROR_MODEL_CODE_EXIST = new ErrorCode(100011, "error.model.code.exist");
    //100012名称name已存在
    ErrorCode ERROR_MODEL_NAME_EXIST = new ErrorCode(100012, "error.model.name.exist");
    //100013全称fullname已存在
    ErrorCode ERROR_MODEL_FULLNAME_EXIST = new ErrorCode(100013, "error.model.fullname.exist");
    //100014数据未找到
    ErrorCode ERROR_MODEL_NOT_FOUND = new ErrorCode(100014, "error.model.data.not.exist");
    //100015数据已被删除
    ErrorCode ERROR_MODEL_HAS_DELETED = new ErrorCode(100015, "error.model.data.has.deleted");
    //100016数据已被审核
    ErrorCode ERROR_MODEL_HAS_AUDITED = new ErrorCode(100016, "error.model.data.has.audited");
    //100017数据已被审核
    ErrorCode ERROR_MODEL_HAS_SUBMITTED = new ErrorCode(100017, "error.model.data.has.submitted");
    //100018数据已被启用
    ErrorCode ERROR_MODEL_HAS_ONLINEED = new ErrorCode(100018, "error.model.data.has.onlined");
    //100019数据已被停用
    ErrorCode ERROR_MODEL_HAS_OFFLINEED = new ErrorCode(100019, "error.model.data.has.offlined");
    //100020数据已被停用
    ErrorCode ERROR_MODEL_USERNAME_EXIST = new ErrorCode(100020, "error.model.username.exist");
    //100028数据为非提交状态
    ErrorCode ERROR_MODEL_NOT_SUBMITTED = new ErrorCode(100028, "error.model.data.not.submitted");


    //文件上传下载处理
    ErrorCode ERROR_FILE_IS_EMPTY = new ErrorCode(100021, "error.file.empty");
    ErrorCode ERROR_FILE_IS_TOO_BIG = new ErrorCode(100022, "error.file.filesize.too.big");
    ErrorCode ERROR_FILE_NOT_FOUND = new ErrorCode(100023, "error.file.not.found");
    ErrorCode ERROR_FILE_ILLEGAL = new ErrorCode(100024, "error.file.illegal");
    ErrorCode ERROR_FILE_NOT_SAFE = new ErrorCode(100025, "error.file.notsafe");

    //100020
    ErrorCode ERROR_MODEL_SHORTNAME_EXIST = new ErrorCode(100020, "error.model.shortname.exist");

    //100022数据非编辑状态不允许删除
    ErrorCode ERROR_MODEL_NOT_SAVED = new ErrorCode(100025, "error.model.data.not.saved");
    //100026系统预设数据不允许删除
    ErrorCode ERROR_MODEL_ISSYSTEM_NODELETE = new ErrorCode(100026, "error.model.data.issystem_nodelete");
    //100027系统预设数据不允许修改
    ErrorCode ERROR_MODEL_ISSYSTEM_NOEDIT = new ErrorCode(100027, "error.model.data.issystem_noedit");




}
